package cc.ufinity.networkdiagnose.manager;

import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.apache.http.Header;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.HttpStatus;
import org.apache.http.NameValuePair;
import org.apache.http.client.HttpClient;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.client.params.ClientPNames;
import org.apache.http.message.BasicNameValuePair;
import org.apache.http.params.HttpParams;
import org.apache.http.util.EntityUtils;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;

import cc.ufinity.networkdiagnose.util.HttpUtils;
import cc.ufinity.networkdiagnose.util.StringUtils;
import cc.ufinity.networkdiagnose.view.R;

import android.app.Activity;
import android.net.wifi.WifiManager;
import android.util.Log;

/**
 * peap认证及下线认证测试类
 * 
 * @author zhirong
 * 
 */
public final class PeapAuthManager extends AbstractManager {

    private Activity ctx; 
    private long startTime;
    private long endTime;  
    private WlanManager wifiManager;
    public PeapAuthManager(Activity context) {
        this.ctx = context;
    }

    /**
     * PEAP下线
     * 
     * @return TRUE or False
     */
    public boolean logout() {

        boolean success = false;
         
        return success;

        // return wh.CMCCLogout();
    }

    /**
     * PEAP连接认证
     */
    public boolean auth(String url, String userName, String pwd) {
    	boolean success = false;
        
        return success;

        // return wh.CMCCLogin(userName, pwd);
    }
 
    
    public long getEndTime() {
        return endTime;
    }

    public void setEndTime(long endTime) {
        this.endTime = endTime;
    }

    public long getStartTime() {
        return startTime;
    }

    public void setStartTime(long startTime) {
        this.startTime = startTime;
    } 
}
